package lab02.test19;

public class Test {
    public static void main(String[] args) {
        String result = "HelloWorld!";
        char tmp;
        for (int i=result.length()-1;i>=0;i--){

            tmp=result.charAt(i);

            if (tmp>='A'&&tmp<='Z'){

                tmp+=32;

                System.out.print((char) tmp);
            }else
            if (tmp>='a'&&tmp<='z'){

                tmp-=32;

                System.out.print((char) tmp);
            }


        }
    }
}
